package com.jammingpro.blog_system.mapper;

import com.jammingpro.blog_system.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserInfoMapper {
    @Select("select id, user_name, github_url, password from user where delete_flag=0 and user_name=#{userName}")
    UserInfo getUserInfoByUserName(UserInfo userInfo);

    @Select("select user_name, github_url from user where delete_flag=0 and id=#{id}")
    UserInfo getUserInfoById(Integer id);
}
